package com.tongji.showroom.vo
{   	
	import com.tongji.showroom.events.AddUserProductEvent;
	
	import flash.geom.Point;
	
	import mx.controls.Alert;
	
	import org.robotlegs.mvcs.Actor;
	
	/**
	 * 
	 * @author chenzhongyuan
	 * 2011/7/19
	 */
	
	public class Picture extends Actor
	{
		public var pictureId:Number = 0;
		public var pictureSize:String;
		public var pictureName:String;
		public var pictureUpdate:Boolean = false;
		public var pictureLocation:String;
		public var pictureSelected:Boolean = false;
		public var picturePoint:Point;
		
		public function Picture()
		{
			super();
			this.pictureId = pictureId;
			this.pictureSize = pictureSize;
			this.pictureName = pictureName;
			this.pictureUpdate = pictureUpdate;
			this.pictureLocation = pictureLocation;
			this.pictureSelected = pictureSelected;
			this.picturePoint = picturePoint;
		}
		
		public function action():void
		{
			Alert.show("pc");
			dispatch(new AddUserProductEvent(AddUserProductEvent.DELETE_USER_PRODUCT, 22, null, pictureId));
		}
	}
}